﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace MVC4App.Areas.Administrators.Models
{
    public class RoleModel
    {
        /// <summary>
        /// Gets or sets the role identifier.
        /// </summary>
        /// <value>
        /// The role identifier.
        /// </value>
        public int RoleId { get; set; }
        /// <summary>
        /// Gets or sets the name of the role.
        /// </summary>
        /// <value>
        /// The name of the role.
        /// </value>
        [Required(ErrorMessageResourceType = typeof(NmResources.AdminErrorResource), ErrorMessageResourceName = "Required")]
        [Display(Name = "lbTitle", ResourceType = typeof(NmResources.AdminResource))]
        [DataType(DataType.Text)]
        public string RoleName { get; set; }
        /// <summary>
        /// Gets or sets the description.
        /// </summary>
        /// <value>
        /// The description.
        /// </value>
        [Display(Name = "lbDescription", ResourceType = typeof(NmResources.AdminResource))]
        [DataType(DataType.Text)]
        public string Description { get; set; }
        /// <summary>
        /// Gets or sets a value indicating whether [is active].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [is active]; otherwise, <c>false</c>.
        /// </value>
        [Display(Name = "lbActive", ResourceType = typeof(NmResources.AdminResource))]
        [DataType(DataType.Text)]
        public bool IsActive { get; set; }

        /// <summary>
        /// The role in sites
        /// </summary>
        public string RoleInSites { get; set; }
    }
}